﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaOpen extends IMessageBase
    {
        public var copyType:int;
        public var arenaLv:int;
        public var endSeconds:int;
        public var dayRewardDt:Date;
        public var weekRewardDt:Date;
        public var mouthRewardDt:Date;
        public const _type:int = 7001;
        public static var _regist:SArenaOpen = new SArenaOpen(true);

        public function SArenaOpen(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaOpen();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyType);
            param1.writeInt(this.arenaLv);
            param1.writeInt(this.endSeconds);
            param1.writeDate(this.dayRewardDt);
            param1.writeDate(this.weekRewardDt);
            param1.writeDate(this.mouthRewardDt);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.copyType = param1.readInt();
            this.arenaLv = param1.readInt();
            this.endSeconds = param1.readInt();
            this.dayRewardDt = param1.readDate();
            this.weekRewardDt = param1.readDate();
            this.mouthRewardDt = param1.readDate();
            return;
        }// end function

    }
}
